home *** CD-ROM | disk | FTP | other *** search
/ Revista do CD-ROM 124 / cd-rom 124.iso / edu / tuxmath / tuxmathscrabble / tuxmathscrabble.exe / asymptopia / TuxManeuvers.pyo (.txt) < prev    next >
Encoding:
Python Compiled Bytecode  |  2003-11-16  |  20.8 KB  |  1,186 lines

  1. # Source Generated with Decompyle++
  2. # File: in.pyo (Python 2.2)
  3.  
  4. import os
  5. import pygame
  6. import sys
  7. from pygame.locals import *
  8. from random import random
  9. from Maneuvers import Maneuvers
  10. from asymptopia.myutil import *
  11.  
  12. try:
  13.     for sitepkgdir in sys.path:
  14.         if sitepkgdir[-13:] == 'site-packages':
  15.             break
  16.         
  17. except:
  18.     pass
  19.  
  20.  
  21. class TuxManeuvers(Maneuvers):
  22.     
  23.     def __init__(self):
  24.         self.maneuvers = { }
  25.         pop01 = load_sound(os.path.join(sitepkgdir, 'asymptopia/sounds/pop01.wav'))
  26.         pop02 = load_sound(os.path.join(sitepkgdir, 'asymptopia/sounds/pop01.wav'))
  27.         boink = load_sound('asymptopia/sounds/bong05.wav')
  28.         img_walkl_01 = pygame.image.load(os.path.join(sitepkgdir, './asymptopia/anim_images/walk_left_01_color.gif'))
  29.         img_walkl_02 = pygame.image.load(os.path.join(sitepkgdir, './asymptopia/anim_images/walk_left_02_color.gif'))
  30.         img_walkl_03 = pygame.image.load(os.path.join(sitepkgdir, './asymptopia/anim_images/walk_left_03_color.gif'))
  31.         img_walkl_04 = pygame.image.load(os.path.join(sitepkgdir, './asymptopia/anim_images/walk_left_04_color.gif'))
  32.         walkl = [
  33.             {
  34.                 'img': img_walkl_02,
  35.                 'snd': pop02,
  36.                 'dx': -15,
  37.                 'dy': -8,
  38.                 'timeout': 0.10000000000000001 },
  39.             {
  40.                 'img': img_walkl_03,
  41.                 'snd': pop01,
  42.                 'dx': -15,
  43.                 'dy': 8,
  44.                 'timeout': 0.10000000000000001 },
  45.             {
  46.                 'img': img_walkl_04,
  47.                 'snd': pop02,
  48.                 'dx': -15,
  49.                 'dy': -8,
  50.                 'timeout': 0.10000000000000001 },
  51.             {
  52.                 'img': img_walkl_01,
  53.                 'snd': pop01,
  54.                 'dx': -15,
  55.                 'dy': 8,
  56.                 'timeout': 0.10000000000000001 }]
  57.         img_walkr_01 = pygame.image.load(os.path.join(sitepkgdir, './asymptopia/anim_images/walk_right_01_color.gif'))
  58.         img_walkr_02 = pygame.image.load(os.path.join(sitepkgdir, './asymptopia/anim_images/walk_right_02_color.gif'))
  59.         img_walkr_03 = pygame.image.load(os.path.join(sitepkgdir, './asymptopia/anim_images/walk_right_03_color.gif'))
  60.         img_walkr_04 = pygame.image.load(os.path.join(sitepkgdir, './asymptopia/anim_images/walk_right_04_color.gif'))
  61.         walkr = [
  62.             {
  63.                 'img': img_walkr_02,
  64.                 'snd': pop02,
  65.                 'dx': 15,
  66.                 'dy': 8,
  67.                 'timeout': 0.10000000000000001 },
  68.             {
  69.                 'img': img_walkr_03,
  70.                 'snd': pop01,
  71.                 'dx': 15,
  72.                 'dy': -8,
  73.                 'timeout': 0.10000000000000001 },
  74.             {
  75.                 'img': img_walkr_04,
  76.                 'snd': pop02,
  77.                 'dx': 15,
  78.                 'dy': 8,
  79.                 'timeout': 0.10000000000000001 },
  80.             {
  81.                 'img': img_walkr_01,
  82.                 'snd': pop01,
  83.                 'dx': 15,
  84.                 'dy': -8,
  85.                 'timeout': 0.10000000000000001 }]
  86.         img_scratchl_01 = pygame.image.load(os.path.join(sitepkgdir, './asymptopia/anim_images/scratch_left_01.gif'))
  87.         img_scratchl_02 = pygame.image.load(os.path.join(sitepkgdir, './asymptopia/anim_images/scratch_left_02.gif'))
  88.         scratchl = [
  89.             {
  90.                 'img': img_scratchl_01,
  91.                 'snd': None,
  92.                 'dx': 0,
  93.                 'dy': 0,
  94.                 'timeout': 0 },
  95.             {
  96.                 'img': img_scratchl_02,
  97.                 'snd': None,
  98.                 'dx': 0,
  99.                 'dy': 0,
  100.                 'timeout': 0 }]
  101.         img_scratchr_01 = pygame.image.load(os.path.join(sitepkgdir, './asymptopia/anim_images/scratch_right_01.gif'))
  102.         img_scratchr_02 = pygame.image.load(os.path.join(sitepkgdir, './asymptopia/anim_images/scratch_right_02.gif'))
  103.         scratchr = [
  104.             {
  105.                 'img': img_scratchr_01,
  106.                 'snd': None,
  107.                 'dx': 0,
  108.                 'dy': 0,
  109.                 'timeout': 0 },
  110.             {
  111.                 'img': img_scratchr_02,
  112.                 'snd': None,
  113.                 'dx': 0,
  114.                 'dy': 0,
  115.                 'timeout': 0 }]
  116.         img_forehead_slap_01 = pygame.image.load(os.path.join(sitepkgdir, './asymptopia/anim_images/forehead_slap_01_color.gif'))
  117.         img_forehead_slap_02 = pygame.image.load(os.path.join(sitepkgdir, './asymptopia/anim_images/forehead_slap_02_color.gif'))
  118.         img_forehead_slap_03 = pygame.image.load(os.path.join(sitepkgdir, './asymptopia/anim_images/forehead_slap_03_color.gif'))
  119.         img_forehead_slap_04 = pygame.image.load(os.path.join(sitepkgdir, './asymptopia/anim_images/forehead_slap_04_color.gif'))
  120.         img_forehead_slap_05 = pygame.image.load(os.path.join(sitepkgdir, './asymptopia/anim_images/forehead_slap_05_color.gif'))
  121.         img_forehead_slap_06 = pygame.image.load(os.path.join(sitepkgdir, './asymptopia/anim_images/forehead_slap_06_color.gif'))
  122.         img_forehead_slap_07 = pygame.image.load(os.path.join(sitepkgdir, './asymptopia/anim_images/forehead_slap_07_color.gif'))
  123.         img_forehead_slap_08 = pygame.image.load(os.path.join(sitepkgdir, './asymptopia/anim_images/forehead_slap_08_color.gif'))
  124.         img_forehead_slap_09 = pygame.image.load(os.path.join(sitepkgdir, './asymptopia/anim_images/forehead_slap_09_color.gif'))
  125.         img_forehead_slap_10 = pygame.image.load(os.path.join(sitepkgdir, './asymptopia/anim_images/forehead_slap_10_color.gif'))
  126.         forehead_slap = [
  127.             {
  128.                 'img': img_forehead_slap_01,
  129.                 'snd': None,
  130.                 'dx': 0,
  131.                 'dy': 0,
  132.                 'timeout': 0.10000000000000001 },
  133.             {
  134.                 'img': img_forehead_slap_02,
  135.                 'snd': None,
  136.                 'dx': 0,
  137.                 'dy': 0,
  138.                 'timeout': 0.10000000000000001 },
  139.             {
  140.                 'img': img_forehead_slap_03,
  141.                 'snd': None,
  142.                 'dx': 0,
  143.                 'dy': 0,
  144.                 'timeout': 0.10000000000000001 },
  145.             {
  146.                 'img': img_forehead_slap_04,
  147.                 'snd': None,
  148.                 'dx': 0,
  149.                 'dy': 0,
  150.                 'timeout': 0.10000000000000001 },
  151.             {
  152.                 'img': img_forehead_slap_05,
  153.                 'snd': None,
  154.                 'dx': 0,
  155.                 'dy': 0,
  156.                 'timeout': 0.10000000000000001 },
  157.             {
  158.                 'img': img_forehead_slap_05,
  159.                 'snd': None,
  160.                 'dx': 0,
  161.                 'dy': 0,
  162.                 'timeout': 0.10000000000000001 },
  163.             {
  164.                 'img': img_forehead_slap_05,
  165.                 'snd': None,
  166.                 'dx': 0,
  167.                 'dy': 0,
  168.                 'timeout': 0.10000000000000001 },
  169.             {
  170.                 'img': img_forehead_slap_05,
  171.                 'snd': None,
  172.                 'dx': 0,
  173.                 'dy': 0,
  174.                 'timeout': 0.10000000000000001 },
  175.             {
  176.                 'img': img_forehead_slap_05,
  177.                 'snd': None,
  178.                 'dx': 0,
  179.                 'dy': 0,
  180.                 'timeout': 0.10000000000000001 },
  181.             {
  182.                 'img': img_forehead_slap_06,
  183.                 'snd': None,
  184.                 'dx': 0,
  185.                 'dy': 0,
  186.                 'timeout': 0.10000000000000001 },
  187.             {
  188.                 'img': img_forehead_slap_08,
  189.                 'snd': None,
  190.                 'dx': 0,
  191.                 'dy': 0,
  192.                 'timeout': 0.10000000000000001 },
  193.             {
  194.                 'img': img_forehead_slap_09,
  195.                 'snd': None,
  196.                 'dx': 0,
  197.                 'dy': 0,
  198.                 'timeout': 0.10000000000000001 },
  199.             {
  200.                 'img': img_forehead_slap_10,
  201.                 'snd': None,
  202.                 'dx': 0,
  203.                 'dy': 0,
  204.                 'timeout': 0.10000000000000001 }]
  205.         img_big_flapper_00 = pygame.image.load(os.path.join(sitepkgdir, './asymptopia/anim_images/big_flapper_00.gif'))
  206.         img_big_flapper_01 = pygame.image.load(os.path.join(sitepkgdir, './asymptopia/anim_images/big_flapper_01.gif'))
  207.         big_flapper = [
  208.             {
  209.                 'img': img_big_flapper_01,
  210.                 'snd': pop02,
  211.                 'dx': 0,
  212.                 'dy': 20,
  213.                 'timeout': 0.10000000000000001 },
  214.             {
  215.                 'img': img_big_flapper_00,
  216.                 'snd': pop01,
  217.                 'dx': 0,
  218.                 'dy': -20,
  219.                 'timeout': 0.10000000000000001 }]
  220.         img_stand_left_01 = img_walkl_01
  221.         img_stand_right_01 = img_walkr_01
  222.         img_stand_front_01 = pygame.image.load(os.path.join(sitepkgdir, './asymptopia/anim_images/stand_front_01.gif'))
  223.         stand_front = [
  224.             {
  225.                 'img': img_stand_front_01,
  226.                 'snd': None,
  227.                 'dx': 0,
  228.                 'dy': 0,
  229.                 'timeout': 0.0 }]
  230.         img_stand_front_look_left = pygame.image.load(os.path.join(sitepkgdir, './asymptopia/anim_images/stand_front_look_left.gif'))
  231.         stand_front_look_left = [
  232.             {
  233.                 'img': img_stand_front_01,
  234.                 'snd': None,
  235.                 'dx': 0,
  236.                 'dy': 0,
  237.                 'timeout': 0.0 },
  238.             {
  239.                 'img': img_stand_front_look_left,
  240.                 'snd': None,
  241.                 'dx': 0,
  242.                 'dy': 0,
  243.                 'timeout': 0.5 },
  244.             {
  245.                 'img': img_stand_front_01,
  246.                 'snd': None,
  247.                 'dx': 0,
  248.                 'dy': 0,
  249.                 'timeout': 0.0 }]
  250.         img_stand_front_look_right = pygame.image.load(os.path.join(sitepkgdir, './asymptopia/anim_images/stand_front_look_right.gif'))
  251.         stand_front_look_right = [
  252.             {
  253.                 'img': img_stand_front_01,
  254.                 'snd': None,
  255.                 'dx': 0,
  256.                 'dy': 0,
  257.                 'timeout': 0.10000000000000001 },
  258.             {
  259.                 'img': img_stand_front_look_right,
  260.                 'snd': None,
  261.                 'dx': 0,
  262.                 'dy': 0,
  263.                 'timeout': 0.5 },
  264.             {
  265.                 'img': img_stand_front_01,
  266.                 'snd': None,
  267.                 'dx': 0,
  268.                 'dy': 0,
  269.                 'timeout': 0.10000000000000001 }]
  270.         img_stand_left_look_front = pygame.image.load(os.path.join(sitepkgdir, './asymptopia/anim_images/stand_left_look_front.gif'))
  271.         stand_left_look_front = [
  272.             {
  273.                 'img': img_stand_left_01,
  274.                 'snd': None,
  275.                 'dx': 0,
  276.                 'dy': 0,
  277.                 'timeout': 0.10000000000000001 },
  278.             {
  279.                 'img': img_stand_left_look_front,
  280.                 'snd': None,
  281.                 'dx': 0,
  282.                 'dy': 0,
  283.                 'timeout': 1.0 },
  284.             {
  285.                 'img': img_stand_front_01,
  286.                 'snd': None,
  287.                 'dx': 0,
  288.                 'dy': 0,
  289.                 'timeout': 0.10000000000000001 }]
  290.         img_stand_right_look_front = pygame.image.load(os.path.join(sitepkgdir, './asymptopia/anim_images/stand_right_look_front.gif'))
  291.         stand_right_look_front = [
  292.             {
  293.                 'img': img_stand_right_01,
  294.                 'snd': None,
  295.                 'dx': 0,
  296.                 'dy': 0,
  297.                 'timeout': 0.10000000000000001 },
  298.             {
  299.                 'img': img_stand_right_look_front,
  300.                 'snd': None,
  301.                 'dx': 0,
  302.                 'dy': 0,
  303.                 'timeout': 1.0 },
  304.             {
  305.                 'img': img_stand_right_01,
  306.                 'snd': None,
  307.                 'dx': 0,
  308.                 'dy': 0,
  309.                 'timeout': 0.10000000000000001 }]
  310.         img_stand_left_look_front_neck_stretch = pygame.image.load(os.path.join(sitepkgdir, './asymptopia/anim_images/stand_left_look_front_neck_stretch.gif'))
  311.         stand_left_look_front_neck_stretch = [
  312.             {
  313.                 'img': img_stand_left_01,
  314.                 'snd': None,
  315.                 'dx': 0,
  316.                 'dy': 0,
  317.                 'timeout': 0.10000000000000001 },
  318.             {
  319.                 'img': img_stand_left_look_front_neck_stretch,
  320.                 'snd': None,
  321.                 'dx': 0,
  322.                 'dy': 0,
  323.                 'timeout': 1.0 },
  324.             {
  325.                 'img': img_stand_front_01,
  326.                 'snd': None,
  327.                 'dx': 0,
  328.                 'dy': 0,
  329.                 'timeout': 0.10000000000000001 }]
  330.         img_stand_right_look_front_neck_stretch = pygame.image.load(os.path.join(sitepkgdir, './asymptopia/anim_images/stand_right_look_front_neck_stretch.gif'))
  331.         stand_right_look_front_neck_stretch = [
  332.             {
  333.                 'img': img_stand_right_01,
  334.                 'snd': None,
  335.                 'dx': 0,
  336.                 'dy': 0,
  337.                 'timeout': 0.10000000000000001 },
  338.             {
  339.                 'img': img_stand_right_look_front_neck_stretch,
  340.                 'snd': None,
  341.                 'dx': 0,
  342.                 'dy': 0,
  343.                 'timeout': 1.0 },
  344.             {
  345.                 'img': img_stand_right_01,
  346.                 'snd': None,
  347.                 'dx': 0,
  348.                 'dy': 0,
  349.                 'timeout': 0.10000000000000001 }]
  350.         hop_in_place = [
  351.             {
  352.                 'img': img_stand_front_01,
  353.                 'snd': pop01,
  354.                 'dx': 0,
  355.                 'dy': -10,
  356.                 'timeout': 0.10000000000000001 },
  357.             {
  358.                 'img': img_stand_front_01,
  359.                 'snd': pop02,
  360.                 'dx': 0,
  361.                 'dy': 10,
  362.                 'timeout': 0.10000000000000001 }]
  363.         img_lean_right_fwd = pygame.image.load(os.path.join(sitepkgdir, './asymptopia/anim_images/lean_right_fwd.gif'))
  364.         img_lean_right_bck = pygame.image.load(os.path.join(sitepkgdir, './asymptopia/anim_images/lean_right_bck.gif'))
  365.         img_lean_left_fwd = pygame.image.load(os.path.join(sitepkgdir, './asymptopia/anim_images/lean_left_fwd.gif'))
  366.         img_lean_left_bck = pygame.image.load(os.path.join(sitepkgdir, './asymptopia/anim_images/lean_left_bck.gif'))
  367.         hop_right = [
  368.             {
  369.                 'img': img_lean_right_fwd,
  370.                 'snd': None,
  371.                 'dx': 0,
  372.                 'dy': 0,
  373.                 'timeout': 0.10000000000000001 },
  374.             {
  375.                 'img': img_lean_right_fwd,
  376.                 'snd': None,
  377.                 'dx': 5,
  378.                 'dy': -10,
  379.                 'timeout': 0.01 },
  380.             {
  381.                 'img': img_lean_right_fwd,
  382.                 'snd': None,
  383.                 'dx': 5,
  384.                 'dy': -6,
  385.                 'timeout': 0.01 },
  386.             {
  387.                 'img': img_lean_right_fwd,
  388.                 'snd': None,
  389.                 'dx': 5,
  390.                 'dy': -5,
  391.                 'timeout': 0.01 },
  392.             {
  393.                 'img': img_lean_right_fwd,
  394.                 'snd': None,
  395.                 'dx': 5,
  396.                 'dy': -1,
  397.                 'timeout': 0.01 },
  398.             {
  399.                 'img': img_lean_right_fwd,
  400.                 'snd': None,
  401.                 'dx': 5,
  402.                 'dy': 0,
  403.                 'timeout': 0.01 },
  404.             {
  405.                 'img': img_lean_right_fwd,
  406.                 'snd': None,
  407.                 'dx': 5,
  408.                 'dy': 0,
  409.                 'timeout': 0.01 },
  410.             {
  411.                 'img': img_stand_right_01,
  412.                 'snd': None,
  413.                 'dx': 15,
  414.                 'dy': 1,
  415.                 'timeout': 0.01 },
  416.             {
  417.                 'img': img_stand_right_01,
  418.                 'snd': None,
  419.                 'dx': 15,
  420.                 'dy': 5,
  421.                 'timeout': 0.01 },
  422.             {
  423.                 'img': img_lean_right_bck,
  424.                 'snd': None,
  425.                 'dx': 15,
  426.                 'dy': 6,
  427.                 'timeout': 0.01 },
  428.             {
  429.                 'img': img_lean_right_bck,
  430.                 'snd': None,
  431.                 'dx': 10,
  432.                 'dy': 10,
  433.                 'timeout': 0.01 },
  434.             {
  435.                 'img': img_lean_right_bck,
  436.                 'snd': None,
  437.                 'dx': 0,
  438.                 'dy': 0,
  439.                 'timeout': 0.10000000000000001 },
  440.             {
  441.                 'img': img_stand_right_01,
  442.                 'snd': boink,
  443.                 'dx': 0,
  444.                 'dy': 0,
  445.                 'timeout': 0.20000000000000001 }]
  446.         hop_left = [
  447.             {
  448.                 'img': img_lean_left_fwd,
  449.                 'snd': None,
  450.                 'dx': 0,
  451.                 'dy': 0,
  452.                 'timeout': 0.10000000000000001 },
  453.             {
  454.                 'img': img_lean_left_fwd,
  455.                 'snd': None,
  456.                 'dx': -5,
  457.                 'dy': -10,
  458.                 'timeout': 0.01 },
  459.             {
  460.                 'img': img_lean_left_fwd,
  461.                 'snd': None,
  462.                 'dx': -5,
  463.                 'dy': -6,
  464.                 'timeout': 0.01 },
  465.             {
  466.                 'img': img_lean_left_fwd,
  467.                 'snd': None,
  468.                 'dx': -5,
  469.                 'dy': -5,
  470.                 'timeout': 0.01 },
  471.             {
  472.                 'img': img_lean_left_fwd,
  473.                 'snd': None,
  474.                 'dx': -5,
  475.                 'dy': -1,
  476.                 'timeout': 0.01 },
  477.             {
  478.                 'img': img_lean_left_fwd,
  479.                 'snd': None,
  480.                 'dx': -5,
  481.                 'dy': 0,
  482.                 'timeout': 0.01 },
  483.             {
  484.                 'img': img_lean_left_fwd,
  485.                 'snd': None,
  486.                 'dx': -5,
  487.                 'dy': 0,
  488.                 'timeout': 0.01 },
  489.             {
  490.                 'img': img_stand_left_01,
  491.                 'snd': None,
  492.                 'dx': -15,
  493.                 'dy': 1,
  494.                 'timeout': 0.01 },
  495.             {
  496.                 'img': img_stand_left_01,
  497.                 'snd': None,
  498.                 'dx': -15,
  499.                 'dy': 5,
  500.                 'timeout': 0.01 },
  501.             {
  502.                 'img': img_lean_left_bck,
  503.                 'snd': None,
  504.                 'dx': -15,
  505.                 'dy': 6,
  506.                 'timeout': 0.01 },
  507.             {
  508.                 'img': img_lean_left_bck,
  509.                 'snd': None,
  510.                 'dx': -10,
  511.                 'dy': 10,
  512.                 'timeout': 0.01 },
  513.             {
  514.                 'img': img_lean_left_bck,
  515.                 'snd': None,
  516.                 'dx': 0,
  517.                 'dy': 0,
  518.                 'timeout': 0.10000000000000001 },
  519.             {
  520.                 'img': img_stand_left_01,
  521.                 'snd': boink,
  522.                 'dx': 0,
  523.                 'dy': 0,
  524.                 'timeout': 0.20000000000000001 }]
  525.         hopflap_left = [
  526.             {
  527.                 'img': img_big_flapper_00,
  528.                 'snd': pop02,
  529.                 'dx': -5,
  530.                 'dy': -10,
  531.                 'timeout': 0.089999999999999997 },
  532.             {
  533.                 'img': img_big_flapper_01,
  534.                 'snd': pop01,
  535.                 'dx': 0,
  536.                 'dy': 10,
  537.                 'timeout': 0.089999999999999997 }]
  538.         hopflap_right = [
  539.             {
  540.                 'img': img_big_flapper_00,
  541.                 'snd': pop02,
  542.                 'dx': 5,
  543.                 'dy': -10,
  544.                 'timeout': 0.089999999999999997 },
  545.             {
  546.                 'img': img_big_flapper_01,
  547.                 'snd': pop01,
  548.                 'dx': 0,
  549.                 'dy': 10,
  550.                 'timeout': 0.089999999999999997 }]
  551.         img_yougofirst_00 = pygame.image.load(os.path.join(sitepkgdir, './asymptopia/anim_images/yougofirst_00.gif'))
  552.         you_go_first = [
  553.             {
  554.                 'img': img_yougofirst_00,
  555.                 'snd': None,
  556.                 'dx': 0,
  557.                 'dy': 0,
  558.                 'timeout': 0.0 }]
  559.         img_himathlover_00 = pygame.image.load(os.path.join(sitepkgdir, './asymptopia/anim_images/himathlover_00.gif'))
  560.         img_himathlover_01 = pygame.image.load(os.path.join(sitepkgdir, './asymptopia/anim_images/himathlover_01.gif'))
  561.         hi_math_lover = [
  562.             {
  563.                 'img': img_himathlover_00,
  564.                 'snd': None,
  565.                 'dx': 0,
  566.                 'dy': 0,
  567.                 'timeout': 0.10000000000000001 },
  568.             {
  569.                 'img': img_himathlover_01,
  570.                 'snd': None,
  571.                 'dx': 0,
  572.                 'dy': 0,
  573.                 'timeout': 0.10000000000000001 }]
  574.         img_head_tilt_left_00 = pygame.image.load(os.path.join(sitepkgdir, './asymptopia/anim_images/head_tilt_left_00.gif'))
  575.         img_head_tilt_left_01 = pygame.image.load(os.path.join(sitepkgdir, './asymptopia/anim_images/head_tilt_left_01.gif'))
  576.         head_tilt_left = [
  577.             {
  578.                 'img': img_head_tilt_left_00,
  579.                 'snd': None,
  580.                 'dx': 0,
  581.                 'dy': 0,
  582.                 'timeout': 0.10000000000000001 },
  583.             {
  584.                 'img': img_head_tilt_left_01,
  585.                 'snd': None,
  586.                 'dx': 0,
  587.                 'dy': 0,
  588.                 'timeout': 0.10000000000000001 },
  589.             {
  590.                 'img': img_head_tilt_left_01,
  591.                 'snd': None,
  592.                 'dx': 0,
  593.                 'dy': 0,
  594.                 'timeout': 0.10000000000000001 },
  595.             {
  596.                 'img': img_head_tilt_left_01,
  597.                 'snd': None,
  598.                 'dx': 0,
  599.                 'dy': 0,
  600.                 'timeout': 0.10000000000000001 },
  601.             {
  602.                 'img': img_head_tilt_left_01,
  603.                 'snd': None,
  604.                 'dx': 0,
  605.                 'dy': 0,
  606.                 'timeout': 0.10000000000000001 },
  607.             {
  608.                 'img': img_head_tilt_left_01,
  609.                 'snd': None,
  610.                 'dx': 0,
  611.                 'dy': 0,
  612.                 'timeout': 0.10000000000000001 },
  613.             {
  614.                 'img': img_head_tilt_left_01,
  615.                 'snd': None,
  616.                 'dx': 0,
  617.                 'dy': 0,
  618.                 'timeout': 0.10000000000000001 },
  619.             {
  620.                 'img': img_head_tilt_left_01,
  621.                 'snd': None,
  622.                 'dx': 0,
  623.                 'dy': 0,
  624.                 'timeout': 0.10000000000000001 },
  625.             {
  626.                 'img': img_head_tilt_left_01,
  627.                 'snd': None,
  628.                 'dx': 0,
  629.                 'dy': 0,
  630.                 'timeout': 0.10000000000000001 },
  631.             {
  632.                 'img': img_head_tilt_left_01,
  633.                 'snd': None,
  634.                 'dx': 0,
  635.                 'dy': 0,
  636.                 'timeout': 0.10000000000000001 },
  637.             {
  638.                 'img': img_head_tilt_left_01,
  639.                 'snd': None,
  640.                 'dx': 0,
  641.                 'dy': 0,
  642.                 'timeout': 0.10000000000000001 },
  643.             {
  644.                 'img': img_head_tilt_left_01,
  645.                 'snd': None,
  646.                 'dx': 0,
  647.                 'dy': 0,
  648.                 'timeout': 0.10000000000000001 },
  649.             {
  650.                 'img': img_head_tilt_left_01,
  651.                 'snd': None,
  652.                 'dx': 0,
  653.                 'dy': 0,
  654.                 'timeout': 0.10000000000000001 },
  655.             {
  656.                 'img': img_head_tilt_left_00,
  657.                 'snd': None,
  658.                 'dx': 0,
  659.                 'dy': 0,
  660.                 'timeout': 0.10000000000000001 }]
  661.         img_head_tilt_right_00 = pygame.image.load(os.path.join(sitepkgdir, './asymptopia/anim_images/head_tilt_right_00.gif'))
  662.         img_head_tilt_right_01 = pygame.image.load(os.path.join(sitepkgdir, './asymptopia/anim_images/head_tilt_right_01.gif'))
  663.         head_tilt_right = [
  664.             {
  665.                 'img': img_head_tilt_right_00,
  666.                 'snd': None,
  667.                 'dx': 0,
  668.                 'dy': 0,
  669.                 'timeout': 0.10000000000000001 },
  670.             {
  671.                 'img': img_head_tilt_right_01,
  672.                 'snd': None,
  673.                 'dx': 0,
  674.                 'dy': 0,
  675.                 'timeout': 0.10000000000000001 },
  676.             {
  677.                 'img': img_head_tilt_right_01,
  678.                 'snd': None,
  679.                 'dx': 0,
  680.                 'dy': 0,
  681.                 'timeout': 0.10000000000000001 },
  682.             {
  683.                 'img': img_head_tilt_right_01,
  684.                 'snd': None,
  685.                 'dx': 0,
  686.                 'dy': 0,
  687.                 'timeout': 0.10000000000000001 },
  688.             {
  689.                 'img': img_head_tilt_right_01,
  690.                 'snd': None,
  691.                 'dx': 0,
  692.                 'dy': 0,
  693.                 'timeout': 0.10000000000000001 },
  694.             {
  695.                 'img': img_head_tilt_right_01,
  696.                 'snd': None,
  697.                 'dx': 0,
  698.                 'dy': 0,
  699.                 'timeout': 0.10000000000000001 },
  700.             {
  701.                 'img': img_head_tilt_right_01,
  702.                 'snd': None,
  703.                 'dx': 0,
  704.                 'dy': 0,
  705.                 'timeout': 0.10000000000000001 },
  706.             {
  707.                 'img': img_head_tilt_right_01,
  708.                 'snd': None,
  709.                 'dx': 0,
  710.                 'dy': 0,
  711.                 'timeout': 0.10000000000000001 },
  712.             {
  713.                 'img': img_head_tilt_right_01,
  714.                 'snd': None,
  715.                 'dx': 0,
  716.                 'dy': 0,
  717.                 'timeout': 0.10000000000000001 },
  718.             {
  719.                 'img': img_head_tilt_right_01,
  720.                 'snd': None,
  721.                 'dx': 0,
  722.                 'dy': 0,
  723.                 'timeout': 0.10000000000000001 },
  724.             {
  725.                 'img': img_head_tilt_right_01,
  726.                 'snd': None,
  727.                 'dx': 0,
  728.                 'dy': 0,
  729.                 'timeout': 0.10000000000000001 },
  730.             {
  731.                 'img': img_head_tilt_right_01,
  732.                 'snd': None,
  733.                 'dx': 0,
  734.                 'dy': 0,
  735.                 'timeout': 0.10000000000000001 },
  736.             {
  737.                 'img': img_head_tilt_right_01,
  738.                 'snd': None,
  739.                 'dx': 0,
  740.                 'dy': 0,
  741.                 'timeout': 0.10000000000000001 },
  742.             {
  743.                 'img': img_head_tilt_right_00,
  744.                 'snd': None,
  745.                 'dx': 0,
  746.                 'dy': 0,
  747.                 'timeout': 0.10000000000000001 }]
  748.         img_neck_stretch_01 = pygame.image.load(os.path.join(sitepkgdir, './asymptopia/anim_images/neck_stretch_01.gif'))
  749.         img_neck_squash_01 = pygame.image.load(os.path.join(sitepkgdir, './asymptopia/anim_images/neck_squash_01.gif'))
  750.         img_neck_squash_tilt_left = pygame.image.load(os.path.join(sitepkgdir, './asymptopia/anim_images/neck_squash_tilt_left.gif'))
  751.         img_neck_squash_tilt_right = pygame.image.load(os.path.join(sitepkgdir, './asymptopia/anim_images/neck_squash_tilt_right.gif'))
  752.         neck_stretch = [
  753.             {
  754.                 'img': img_stand_front_01,
  755.                 'snd': None,
  756.                 'dx': 0,
  757.                 'dy': 0,
  758.                 'timeout': 0.10000000000000001 },
  759.             {
  760.                 'img': img_neck_stretch_01,
  761.                 'snd': None,
  762.                 'dx': 0,
  763.                 'dy': 0,
  764.                 'timeout': 0.10000000000000001 }]
  765.         neck_squash = [
  766.             {
  767.                 'img': img_stand_front_01,
  768.                 'snd': None,
  769.                 'dx': 0,
  770.                 'dy': 0,
  771.                 'timeout': 0.10000000000000001 },
  772.             {
  773.                 'img': img_neck_squash_01,
  774.                 'snd': None,
  775.                 'dx': 0,
  776.                 'dy': 0,
  777.                 'timeout': 0.10000000000000001 }]
  778.         neck_squash_tilt_lr = [
  779.             {
  780.                 'img': img_neck_squash_01,
  781.                 'snd': None,
  782.                 'dx': 0,
  783.                 'dy': 0,
  784.                 'timeout': 0.10000000000000001 },
  785.             {
  786.                 'img': img_neck_squash_tilt_left,
  787.                 'snd': None,
  788.                 'dx': 0,
  789.                 'dy': 0,
  790.                 'timeout': 0.10000000000000001 },
  791.             {
  792.                 'img': img_neck_squash_01,
  793.                 'snd': None,
  794.                 'dx': 0,
  795.                 'dy': 0,
  796.                 'timeout': 0.10000000000000001 },
  797.             {
  798.                 'img': img_neck_squash_tilt_right,
  799.                 'snd': None,
  800.                 'dx': 0,
  801.                 'dy': 0,
  802.                 'timeout': 0.10000000000000001 },
  803.             {
  804.                 'img': img_neck_squash_01,
  805.                 'snd': None,
  806.                 'dx': 0,
  807.                 'dy': 0,
  808.                 'timeout': 0.10000000000000001 }]
  809.         neck_squash_tilt_l = [
  810.             {
  811.                 'img': img_neck_squash_01,
  812.                 'snd': None,
  813.                 'dx': 0,
  814.                 'dy': 0,
  815.                 'timeout': 0.10000000000000001 },
  816.             {
  817.                 'img': img_neck_squash_tilt_left,
  818.                 'snd': None,
  819.                 'dx': 0,
  820.                 'dy': 0,
  821.                 'timeout': 0.10000000000000001 },
  822.             {
  823.                 'img': img_neck_squash_01,
  824.                 'snd': None,
  825.                 'dx': 0,
  826.                 'dy': 0,
  827.                 'timeout': 0.10000000000000001 }]
  828.         neck_squash_tilt_r = [
  829.             {
  830.                 'img': img_neck_squash_01,
  831.                 'snd': None,
  832.                 'dx': 0,
  833.                 'dy': 0,
  834.                 'timeout': 0.10000000000000001 },
  835.             {
  836.                 'img': img_neck_squash_tilt_right,
  837.                 'snd': None,
  838.                 'dx': 0,
  839.                 'dy': 0,
  840.                 'timeout': 0.10000000000000001 },
  841.             {
  842.                 'img': img_neck_squash_01,
  843.                 'snd': None,
  844.                 'dx': 0,
  845.                 'dy': 0,
  846.                 'timeout': 0.10000000000000001 }]
  847.         neck_squash_hop_in_place = [
  848.             {
  849.                 'img': img_neck_squash_01,
  850.                 'snd': None,
  851.                 'dx': 0,
  852.                 'dy': 0,
  853.                 'timeout': 0.10000000000000001 },
  854.             {
  855.                 'img': img_neck_squash_01,
  856.                 'snd': None,
  857.                 'dx': 0,
  858.                 'dy': -10,
  859.                 'timeout': 0.10000000000000001 },
  860.             {
  861.                 'img': img_neck_squash_01,
  862.                 'snd': None,
  863.                 'dx': 0,
  864.                 'dy': 10,
  865.                 'timeout': 0.10000000000000001 },
  866.             {
  867.                 'img': img_neck_squash_01,
  868.                 'snd': None,
  869.                 'dx': 0,
  870.                 'dy': -10,
  871.                 'timeout': 0.10000000000000001 },
  872.             {
  873.                 'img': img_neck_squash_01,
  874.                 'snd': None,
  875.                 'dx': 0,
  876.                 'dy': 10,
  877.                 'timeout': 0.10000000000000001 },
  878.             {
  879.                 'img': img_neck_squash_01,
  880.                 'snd': None,
  881.                 'dx': 0,
  882.                 'dy': -10,
  883.                 'timeout': 0.10000000000000001 },
  884.             {
  885.                 'img': img_neck_squash_01,
  886.                 'snd': None,
  887.                 'dx': 0,
  888.                 'dy': 10,
  889.                 'timeout': 0.10000000000000001 },
  890.             {
  891.                 'img': img_stand_front_01,
  892.                 'snd': None,
  893.                 'dx': 0,
  894.                 'dy': 0,
  895.                 'timeout': 0.10000000000000001 }]
  896.         img_am_stumped = pygame.image.load(os.path.join(sitepkgdir, './asymptopia/anim_images/i_am_stumped.gif'))
  897.         i_am_stumped = [
  898.             {
  899.                 'img': img_am_stumped,
  900.                 'snd': None,
  901.                 'dx': 0,
  902.                 'dy': 0,
  903.                 'timeout': 0.050000000000000003 }]
  904.         img_skater = pygame.image.load(os.path.join(sitepkgdir, './asymptopia/anim_images/skate_right.gif'))
  905.         skate_right = [
  906.             {
  907.                 'img': img_skater,
  908.                 'snd': None,
  909.                 'dx': 15,
  910.                 'dy': 0,
  911.                 'timeout': 0 }]
  912.         skate_right_slower = [
  913.             {
  914.                 'img': img_skater,
  915.                 'snd': None,
  916.                 'dx': 9,
  917.                 'dy': 0,
  918.                 'timeout': 0 }]
  919.         img_skatel = pygame.image.load(os.path.join(sitepkgdir, './asymptopia/anim_images/skate_left.gif'))
  920.         skate_left = [
  921.             {
  922.                 'img': img_skatel,
  923.                 'snd': None,
  924.                 'dx': -15,
  925.                 'dy': 0,
  926.                 'timeout': 0 }]
  927.         skate_left_slower = [
  928.             {
  929.                 'img': img_skatel,
  930.                 'snd': None,
  931.                 'dx': -9,
  932.                 'dy': 0,
  933.                 'timeout': 0 }]
  934.         self.sequences = {
  935.             'walkl': walkl,
  936.             'walkr': walkr,
  937.             'scratchr': scratchr,
  938.             'scratchl': scratchl,
  939.             'forehead_slap': forehead_slap,
  940.             'big_flapper': big_flapper,
  941.             'stand_front': stand_front,
  942.             'hop_in_place': hop_in_place,
  943.             'hopflap_left': hopflap_left,
  944.             'hopflap_right': hopflap_right,
  945.             'you_go_first': you_go_first,
  946.             'hi_math_lover': hi_math_lover,
  947.             'head_tilt_left': head_tilt_left,
  948.             'head_tilt_right': head_tilt_right,
  949.             'neck_stretch': neck_stretch,
  950.             'neck_squash': neck_squash,
  951.             'neck_squash_tilt_lr': neck_squash_tilt_lr,
  952.             'neck_squash_tilt_l': neck_squash_tilt_l,
  953.             'neck_squash_tilt_r': neck_squash_tilt_r,
  954.             'stand_front_look_left': stand_front_look_left,
  955.             'stand_front_look_right': stand_front_look_right,
  956.             'stand_left_look_front': stand_left_look_front,
  957.             'stand_right_look_front': stand_right_look_front,
  958.             'stand_left_look_front_neck_stretch': stand_left_look_front_neck_stretch,
  959.             'stand_right_look_front_neck_stretch': stand_right_look_front_neck_stretch,
  960.             'hop_right': hop_right,
  961.             'hop_left': hop_left,
  962.             'neck_squash_hop_in_place': neck_squash_hop_in_place,
  963.             'i_am_stumped': i_am_stumped,
  964.             'skate_right': skate_right,
  965.             'skate_right_slower': skate_right_slower,
  966.             'skate_left': skate_left,
  967.             'skate_left_slower': skate_left_slower }
  968.         self.defineManeuver('look_left_maneuver', [
  969.             {
  970.                 'stand_front_look_left': (-999, 0) }])
  971.         self.defineManeuver('look_right_maneuver', [
  972.             {
  973.                 'stand_front_look_right': (-999, 0) }])
  974.         self.defineManeuver('insist_yougofirst_maneuver', [
  975.             {
  976.                 'you_go_first': (-999, 1) }])
  977.         self.defineManeuver('return_stumped_maneuver', [
  978.             {
  979.                 'i_am_stumped': (-999, 10) },
  980.             {
  981.                 'walkr': (730, 100) },
  982.             {
  983.                 'stand_front': (-999, 0) }])
  984.         self.defineManeuver('tux_welcome_maneuver_01', [
  985.             {
  986.                 'stand_front': (-999, 10) },
  987.             {
  988.                 'hi_math_lover': (-999, 10) },
  989.             {
  990.                 'walkr': (730, 100) },
  991.             {
  992.                 'stand_front': (-999, 1) },
  993.             {
  994.                 'you_go_first': (-999, 15) },
  995.             {
  996.                 'stand_front': (-999, 1) }])
  997.         self.defineManeuver('tux_welcome_maneuver_02', [
  998.             {
  999.                 'stand_front': (-999, 10) },
  1000.             {
  1001.                 'hi_math_lover': (-999, 10) },
  1002.             {
  1003.                 'hop_right': (730, 100) },
  1004.             {
  1005.                 'stand_front': (-999, 1) },
  1006.             {
  1007.                 'you_go_first': (-999, 15) },
  1008.             {
  1009.                 'stand_front': (-999, 1) }])
  1010.         self.defineManeuver('forehead_slap_maneuver', [
  1011.             {
  1012.                 'forehead_slap': (-999, 0) },
  1013.             {
  1014.                 'stand_front': (-999, 0) }])
  1015.         self.defineManeuver('tux_get_up_maneuver_01', [
  1016.             {
  1017.                 'walkl': (200, 100) },
  1018.             {
  1019.                 'scratchl': (-999, 1) }])
  1020.         self.defineManeuver('tux_get_up_maneuver_02', [
  1021.             {
  1022.                 'walkl': (400, 100) },
  1023.             {
  1024.                 'skate_left': (200, 100) },
  1025.             {
  1026.                 'scratchr': (-999, 1) }])
  1027.         self.defineManeuver('tux_get_up_maneuver_03', [
  1028.             {
  1029.                 'skate_left': (400, 100) },
  1030.             {
  1031.                 'walkl': (200, 100) },
  1032.             {
  1033.                 'scratchl': (-999, 1) }])
  1034.         self.defineManeuver('tux_get_up_maneuver_04', [
  1035.             {
  1036.                 'skate_left_slower': (400, 100) },
  1037.             {
  1038.                 'hop_left': (200, 100) },
  1039.             {
  1040.                 'neck_stretch': (-999, 0) }])
  1041.         self.defineManeuver('tux_get_up_maneuver_04', [
  1042.             {
  1043.                 'hop_left': (400, 100) },
  1044.             {
  1045.                 'skate_left': (200, 100) },
  1046.             {
  1047.                 'stand_left_look_front_neck_stretch': (-999, 0) }])
  1048.         self.defineManeuver('return_skating_maneuver', [
  1049.             {
  1050.                 'stand_front': (-999, 0) },
  1051.             {
  1052.                 'skate_right': (730, 100) },
  1053.             {
  1054.                 'stand_front': (-999, 0) }])
  1055.         self.defineManeuver('return_skating_slower_maneuver', [
  1056.             {
  1057.                 'stand_front': (-999, 0) },
  1058.             {
  1059.                 'skate_right_slower': (730, 100) },
  1060.             {
  1061.                 'stand_front': (-999, 0) }])
  1062.         self.defineManeuver('tux_go_back_from_tray_maneuver_01', [
  1063.             {
  1064.                 'walkr': (730, 100) },
  1065.             {
  1066.                 'stand_right_look_front_neck_stretch': (-999, 0) },
  1067.             {
  1068.                 'stand_front': (-999, 0) }])
  1069.         self.defineManeuver('tux_go_back_from_tray_maneuver_02', [
  1070.             {
  1071.                 'hop_right': (330, 100) },
  1072.             {
  1073.                 'skate_right': (730, 100) },
  1074.             {
  1075.                 'stand_right_look_front': (-999, 0) },
  1076.             {
  1077.                 'stand_front': (-999, 0) }])
  1078.         self.defineManeuver('tux_hop_back_from_tray_maneuver', [
  1079.             {
  1080.                 'hopr': (730, 100) },
  1081.             {
  1082.                 'stand_front': (-999, 0) },
  1083.             {
  1084.                 'head_tilt_left': (-999, 0) },
  1085.             {
  1086.                 'stand_front': (-999, 0) }])
  1087.         self.defineManeuver('one_scratchl_maneuver', [
  1088.             {
  1089.                 'scratchl': (-999, 1) },
  1090.             {
  1091.                 'stand_front': (-999, 0) }])
  1092.         self.defineManeuver('one_scratchr_maneuver', [
  1093.             {
  1094.                 'scratchr': (-999, 1) },
  1095.             {
  1096.                 'stand_front': (-999, 0) }])
  1097.         self.defineManeuver('tux_flapper_maneuver', [
  1098.             {
  1099.                 'big_flapper': (-999, 3) },
  1100.             {
  1101.                 'stand_front': (-999, 0) }])
  1102.         self.defineManeuver('hopflap_left_maneuver', [
  1103.             {
  1104.                 'hopflap_left': (650, 100) },
  1105.             {
  1106.                 'stand_front': (-999, 0) }])
  1107.         self.defineManeuver('hopflap_right_maneuver', [
  1108.             {
  1109.                 'hopflap_right': (730, 100) },
  1110.             {
  1111.                 'stand_front': (-999, 0) }])
  1112.         self.defineManeuver('hopflap_leftright_maneuver', [
  1113.             {
  1114.                 'hopflap_left': (650, 100) },
  1115.             {
  1116.                 'hopflap_right': (730, 100) },
  1117.             {
  1118.                 'stand_front': (-999, 1) }])
  1119.         self.defineManeuver('head_tilt_left_maneuver', [
  1120.             {
  1121.                 'head_tilt_left': (-999, 0) }])
  1122.         self.defineManeuver('head_tilt_right_maneuver', [
  1123.             {
  1124.                 'head_tilt_right': (-999, 0) }])
  1125.         self.defineManeuver('hop_in_place_maneuver', [
  1126.             {
  1127.                 'hop_in_place': (-999, 2) }])
  1128.         self.defineManeuver('neck_squash_hop_in_place_maneuver', [
  1129.             {
  1130.                 'neck_squash_hop_in_place': (-999, 0) }])
  1131.         self.defineManeuver('neck_stretch_maneuver', [
  1132.             {
  1133.                 'neck_stretch': (-999, 1) }])
  1134.         self.defineManeuver('neck_squash_maneuver', [
  1135.             {
  1136.                 'neck_squash': (-999, 1) }])
  1137.         self.defineManeuver('neck_squash_tiltleftright_maneuver', [
  1138.             {
  1139.                 'neck_squash_tilt_lr': (-999, 0) }])
  1140.         self.defineManeuver('neck_squash_tiltleft_maneuver', [
  1141.             {
  1142.                 'neck_squash_tilt_l': (-999, 0) }])
  1143.         self.defineManeuver('neck_squash_tiltright_maneuver', [
  1144.             {
  1145.                 'neck_squash_tilt_r': (-999, 0) }])
  1146.         self.defineManeuver('neck_stretch_hopinplace_maneuver', [
  1147.             {
  1148.                 'neck_stretch': (-999, 1) },
  1149.             {
  1150.                 'hop_in_place': (-999, 1) },
  1151.             {
  1152.                 'neck_stretch': (-999, 1) }])
  1153.         self.defineManeuver('walkoff_stage_right_maneuver', [
  1154.             {
  1155.                 'walkr': (1100, 100) },
  1156.             {
  1157.                 'stand_front': (-999, 10) },
  1158.             {
  1159.                 'walkl': (730, 100) },
  1160.             {
  1161.                 'neck_stretch': (-999, 1) },
  1162.             {
  1163.                 'stand_front': (-999, 0) }])
  1164.  
  1165.     
  1166.     def defineManeuver(self, maneuver_name, seqlist):
  1167.         self.maneuvers[maneuver_name] = seqlist
  1168.  
  1169.     
  1170.     def getSequencesPyld(self):
  1171.         return self.sequences
  1172.  
  1173.     
  1174.     def getManeuversPyld(self):
  1175.         return self.maneuvers
  1176.  
  1177.     
  1178.     def getManeuverNames(self):
  1179.         maneuver_names = []
  1180.         for key in self.maneuvers.keys():
  1181.             maneuver_names.append(key)
  1182.         
  1183.         return maneuver_names
  1184.  
  1185.  
  1186.